package com.example.dao;

import com.example.domain.Visitor;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface VisitorMapper {

    List<Visitor> listAll(Map map);

//	@Select("select id,name,target,vi_time from queue where id=#{id}")
//	Visitor getById(Long id);

    //	@Insert("insert into queue(name,target,vi_time) values(#{name},#{target},#{viTime})")
    int insert(Visitor visitor);
    int insert1(Visitor visitor);

    //	@Update("update queue set name=#{name}, target=#{target}, vi_time=#{viTime} where id=#{id}")
    int update(Visitor visitor);

    @Delete("delete from queue where id=#{id}")
    int delete(Integer id);

    int position(int doctor_id);

}